﻿@model IEnumerable<Leikjavefurinn.ViewModels.ScoreboardVM>

@{
    ViewBag.Title = "Stigatafla";
}

<h2>STIGATAFLA</h2>

<div id="scoreBoard">
    <table class="table">
        <thead>
            <tr>
                <th>Notendanafn</th>
                <th>Stig</th>
                <th>Karma</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr>
                    <td>
                        @item.Users.UserName
                    </td>
                    <td>
                        @item.Scoreboards.Score
                    </td>
                    <td>
                        @item.Scoreboards.Rate
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
